$primary-color: #f4e08d;
$primary-color-hover:#d7b45c;
$light:#fff;
$lighter:#a6a5ae;

//main
$baseFontSize: 100; //基于视觉稿横屏尺寸/100得出的基准font-size

@function px2rem($px: 1000) {
  @return $px / $baseFontSize * 1rem;
}

/*=================================================================
  Navigation
==================================================================*/
.nav-header {
  background-color: #130f07;

  .my-nav {
    width: 100%;
    height: 50px;

    .swiper {
      width: auto !important;
      height: 100%;
      text-align: center;
      line-height: 50px;
      color: #000;
      font-size: 16px
    }

    .swiper-wrapper {
      position: relative;
      width: auto !important;
      height: 100%;

      .swiper-slide {
        list-style: none;
        display: flex;
        justify-content: flex-start;
        flex-wrap: nowrap;
        cursor: pointer;

        a {
          color: $lighter;

          &:hover {
            color: $light;
          }
        }
      }

      .active {
        a {
          color: $primary-color;
          background: none;
          border-bottom: 3px solid $primary-color;
        }
      }

      .curr {
        position: absolute;
        height: 2px;
        background: $primary-color-hover;
        left: 0%;
        bottom: 0;
      }

      .swiper-slide {
        width: auto !important;
        margin-right: 20px !important;
        padding: 0 0;
      }
    }


  }

  .m-soso {
    display: none;
  }

  .mob-soso {
    // display: none;
  }

  .user,
  .mob-soso {
    >a {
      display: inline-block;
      color: $lighter;
      font-size: 13px;
      line-height: 26px;
      padding: 12px 8px;
      text-transform: uppercase;
      letter-spacing: 1px;
      transition: .2s ease-in-out 0s;

      &:hover {
        background: none;
        color: $light;
      }
    }
  }
}

.search-soso {
  height: 50px;

  .search-con {
    margin: 0 !important;
    width: 500px;
  }
}

.search-con {
  border-radius: 16px;
  border: 1px solid #555;
  font-size: 14px;
  color: $light;
  transition: all .3s ease-in 0s;
  margin: 0 8px;

  &:hover {
    border: 1px solid #777;
  }

  input,
  select {
    border: none;
    background: transparent;
    padding: 0 8px;
    font-size: 14px;
    outline: none;
    color: $lighter;
    width: 100%;
    min-width: 70px;
  }


  >div {
    padding: 0 10px;
    position: relative;
  }

  .search-text {
    //width: 120px;
    flex-grow: 1;
  }

  .search-text,
  .search-date {
    // &::after {
    //   display: block;
    //   position: absolute;
    //   top: calc(50%);
    //   -webkit-transform: translateY(-50%);
    //   -moz-transform: translateY(-50%);
    //   -ms-transform: translateY(-50%);
    //   -o-transform: translateY(-50%);
    //   transform: translateY(-50%);
    //   left: 0;
    //   width: 1px;
    //   height: 12px;
    //   background: rgba(255, 255, 255, 0.4);
    //   content: '';
    // }
  }

  .btnSearch {
    width: 40px;
    line-height: 32px;
    height: 32px;
    background-color: rgba(255, 255, 255, 0.2);
    border-radius: 0 16px 16px 0;
    text-align: center;
    cursor: pointer;

    .iconsousuo {
      font-size: 14px;
      color: $lighter;
    }
  }

}

.caret {
  display: inline-block;
  width: 0;
  height: 0;
  color: #666;
  margin-left: 2px;
  vertical-align: middle;
  border-top: 4px dashed;
  border-top: 4px solid\9;
  border-right: 4px solid transparent;
  border-left: 4px solid transparent;
}

.logo {
  margin-top: 12px;
  display: inline-block;

  img {
    height: 36px;
  }
}

.dropdown-menu {
  position: absolute;
  top: 100%;
  left: 0;
  z-index: 1000;
  display: none;
  min-width: 160px;
  padding: 5px 0;
  margin: 2px 0 0;
  font-size: 14px;
  text-align: left;
  list-style: none;
  -webkit-background-clip: padding-box;
  background-clip: padding-box;
  border: 1px solid #ccc;
  border: 1px solid rgba(0, 0, 0, 0.15);
  border-radius: 4px;
}

.dropdown {
  padding: 0;
  position: relative;

  .dropdown-menu {
    transform-origin: top;
    animation-fill-mode: forwards;
    transform: scale(1, 0);
    background-color: #222;
    display: block;
    opacity: 0;
    transition: opacity 0.3s ease-in-out, -webkit-transform 0.3s;
    transition: transform 0.3s, opacity 0.3s ease-in-out;
    transition: transform 0.3s, opacity 0.3s ease-in-out, -webkit-transform 0.3s;

    >.active {
      a {
        color: $primary-color;
        background: none;
      }
    }

    a {
      padding: 8px 15px;
      color: #9d9d9d;

      &:hover {
        padding-left: 20px;
        background: transparent;
        color: $light;
      }
    }

  }

  &:hover .dropdown-menu {
    transition: opacity 0.3s ease-in-out, -webkit-transform 0.3s;
    transition: transform 0.3s, opacity 0.3s ease-in-out;
    transition: transform 0.3s, opacity 0.3s ease-in-out, -webkit-transform 0.3s;
    -webkit-transform: scale(1, 1);
    transform: scale(1, 1);
    opacity: 1;
  }
}

.dropdown-soso {
  .dropdown-menu {
    position: absolute;
    top: 100%;
    left: 0;
    z-index: 1000;
    display: none;
    min-width: 160px;
    padding: 5px 0;
    margin: 2px 0 0;
    font-size: 14px;
    text-align: left;
    list-style: none;
    -webkit-background-clip: padding-box;
    background-clip: padding-box;
    border: 1px solid #ccc;
    border: 1px solid rgba(0, 0, 0, 0.15);
    border-radius: 4px;
  }

  .search-con {
    width: 260px;
  }

  ul {
    padding: 0 20px;

    li {

      input,
      select {
        border: none;
        background: transparent;
        outline: none;
        color: #a6a5ae;
        height: 35px;
        width: 100%;
        padding: 0 5px;
      }

      input {
        padding: 0 8px;
      }
    }

    .area {
      border-bottom: 1px solid #444;
    }
  }
}

.info_languages {
  cursor: pointer;
  margin-left: 8px;
  float: left;

  &::after {
    display: block;
    position: absolute;
    top: calc(50% + 1px);
    -webkit-transform: translateY(-50%);
    -moz-transform: translateY(-50%);
    -ms-transform: translateY(-50%);
    -o-transform: translateY(-50%);
    transform: translateY(-50%);
    left: 0;
    width: 2px;
    height: 10px;
    background: $lighter;
    content: '';
  }

  >a {
    display: inline-block;
    color: $lighter;
    font-size: 12px;
    line-height: 26px;
    padding: 20px 15px;
    text-transform: uppercase;
    letter-spacing: 1px;
    transition: .2s ease-in-out 0s;

    &:hover,
    &:active,
    &:focus {
      background: none;
      color: $light;
    }
  }

  .language_flag {
    display: inline-block;
    width: 20px;
    margin-right: 3px;
  }

  .language_flag i {
    vertical-align: middle;
    font-size: 18px;
  }

  .dropdown_text {
    display: inline-block;
    font-size: 12px;
    font-weight: 400;
    text-transform: uppercase;
    line-height: 0.75;
    vertical-align: center;
    margin-right: 15px;
    -webkit-transform: translateY(1px);
    -moz-transform: translateY(1px);
    -ms-transform: translateY(1px);
    -o-transform: translateY(1px);
    transform: translateY(1px);
    -webkit-transition: all 200ms ease;
    -moz-transition: all 200ms ease;
    -ms-transition: all 200ms ease;
    -o-transition: all 200ms ease;
    transition: all 200ms ease;
  }
}